var counter2={
    data:function (){
        return {
            counter:0
        }
    },
    template:'   <div class="box" @click="boxClick">{{counter}}</div>',
    methods:{
        boxClick:function (){
            this.counter++;
        }
    }
}